using FastDevTemplate.DataAccess.Base;

namespace FastDevTemplate.DataAccess.Entities;

public class Log : Entity<Guid>
{
    public string FromUser { get; set; } = "";
    public string Action { get; set; } = "";
    // public string TargetID { get; set; } = "";
    public ActionState State { get; set; }
    public string Describe { get; set; } = "";
    public long DateTime { get; set; } = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
}

public enum ActionState
{
    Successful = 1,
    Error = -1,
    None = 0
}